import request from '../utils/request';
const baseUrl = 'http://localhost:8000/';

export default {
    //获取所有的猪类型
    getPigTypeList(params){
        return request({
            url: baseUrl+'pigservice/pig/pigType',
            method: 'get',
            params
        });
    },
    //查询可选猪的空闲住宿
    getPiggeryTree(){
        return request({
            url: baseUrl+'pigservice/piggery/piggeryTree',
            method: 'get'
        });
    },
    //获取猪的种族树
    getPigTree(){
        return request({
            url: baseUrl+'pigservice/pig/pigTree',
            method: 'get'
        });
    },
}